/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #0097e6, #00a8ff, #74b9ff, #0984e3);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

/* 背景动画 */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 浮动背景元素 */
.floating-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-bg::before,
.floating-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s infinite;
}

.floating-bg::before {
    top: -150px;
    left: -150px;
}

.floating-bg::after {
    bottom: -150px;
    right: -150px;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

/* 容器样式 */
.container {
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 登录框样式 */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: login-box-appear 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25),
                inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* 头部样式 */
.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.login-header i {
    font-size: 56px;
    background: linear-gradient(135deg, #0097e6, #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 151, 230, 0.2));
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* 输入框样式 */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    padding: 14px 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.input-group:focus-within {
    border-color: #0097e6;
    box-shadow: 0 0 0 4px rgba(0, 151, 230, 0.15);
    transform: translateY(-2px);
}

.input-group i {
    color: #a0aec0;
    font-size: 20px;
    width: 24px;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.input-group:focus-within i {
    color: #0097e6;
    transform: scale(1.1);
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
    font-size: 16px;
    background: transparent;
    color: #2d3436;
    font-weight: 500;
}

.input-group input::placeholder {
    color: #a0aec0;
    transition: all 0.3s ease;
    font-weight: 400;
}

.input-group input:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

/* 登录按钮 */
button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0097e6, #00a8ff);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 151, 230, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 151, 230, 0.3);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 151, 230, 0.2);
}

/* 错误消息 */
.error-message {
    background: linear-gradient(135deg, #ff7675, #d63031);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(255, 118, 117, 0.3);
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    font-weight: 500;
}

.error-message i {
    margin-right: 12px;
    font-size: 18px;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 过渡动画 */
.fade-enter-active, .fade-leave-active {
    transition: all 0.3s ease;
}

.fade-enter, .fade-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-box {
        padding: 30px;
        margin: 15px;
    }

    .login-header i {
        font-size: 48px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .input-group {
        padding: 12px 15px;
    }

    button {
        padding: 14px;
        font-size: 15px;
    }
} 

/* 添加粒子背景效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-1000px) rotate(360deg);
        opacity: 0;
    }
}

/* 添加波纹效果 */
button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 错误消息增强 */
.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 100%
    );
    transform: translateX(-100%);
    animation: error-shine 2s infinite;
}

@keyframes error-shine {
    to {
        transform: translateX(100%);
    }
}

/* 输入框焦点动画增强 */
.input-group::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0097e6, #00a8ff);
    transition: all 0.3s ease;
}

.input-group:focus-within::after {
    width: 100%;
    left: 0;
}

/* 登录按钮动画增强 */
button {
    background-size: 200% auto;
    background-image: linear-gradient(45deg, 
        #0097e6 0%, 
        #00a8ff 50%, 
        #0097e6 100%
    );
    transition: all 0.5s ease;
}

button:hover {
    background-position: right center;
}

/* 登录框增强 */
@keyframes login-box-appear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
} 

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
} 